<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title></title>
	</head>
	<body>
		<div id="app">
			<ul>
				<li>{{msg}}</li>
			</ul>
			<input type="text" v-fs>
		</div>

		<script src="js/v2.6.10/vue.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
		
			
			// Vue.directive('fs',{
			// 	inserted:function(el){
			// 		el.focus()
			// 	}
			// })
			
			let myApp = new Vue({
				el: '#app',
				data: {
					msg: '我是数据'
				},
				methods: {},
				computed: {},
				watch: {},
				filters: {},
				directives:{
					fs:{
						inserted:function(el){
							el.focus()
						}
					}
				}
			})
		</script>
	</body>
</html>
